package com.example.demo.web.rest.evt;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

/**
 * @Author zhengmf
 * @Date 2019/1/4  15:30
 */
@ApiModel("保存文章参数")
public class SaveArticleEvt implements Serializable {
    private static final long serialVersionUID = -5300125591595907753L;
    @ApiModelProperty("文章ID")
    private Long articleId;
    @ApiModelProperty("文章标题")
    @NotBlank
    private String articleTitle;
    @ApiModelProperty("文章关键字")
    private String articleKeyword;
    @ApiModelProperty("文章内容")
    private String articleContent;
    @ApiModelProperty("排序顺序")
    private Integer orderNumber;

    public Long getArticleId() {
        return articleId;
    }

    public void setArticleId(Long articleId) {
        this.articleId = articleId;
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle;
    }

    public String getArticleKeyword() {
        return articleKeyword;
    }

    public void setArticleKeyword(String articleKeyword) {
        this.articleKeyword = articleKeyword;
    }

    public String getArticleContent() {
        return articleContent;
    }

    public void setArticleContent(String articleContent) {
        this.articleContent = articleContent;
    }

    public Integer getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(Integer orderNumber) {
        this.orderNumber = orderNumber;
    }

    @Override
    public String toString() {
        return "SaveArticleEvt{" +
            "articleId=" + articleId +
            ", articleTitle='" + articleTitle + '\'' +
            ", articleKeyword='" + articleKeyword + '\'' +
            ", articleContent='" + articleContent + '\'' +
            ", orderNumber=" + orderNumber +
            '}';
    }
}
